package com.cx.purchase.plan.mapper;



import com.cx.purchase.config.ResultVO;
import com.cx.purchase.plan.model.PlanClass;
import com.cx.purchase.plan.model.PlanClassAddVo;
import com.cx.purchase.plan.model.PlanClassSelectVo;
import com.cx.purchase.util.PageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PlanclassMapper {
/*
    @Insert("insert into subclass(code,name,status,remark) values(#{code},#{name},#{status},#{remark})")
*/
    void add(PlanClass planClass1);

    int delete(Integer id);

    List<PlanClass> queryData(PageVo pageVo);

    int queryCount(PageVo pageVo);

    PlanClass queryByName(String name);

    PlanClass queryByCode(String code);

    PlanClass queryById(Integer id);

    void updateStatus(PlanClass planClass1);

    void update(PlanClass planClass1);

    void addAll(List<PlanClassAddVo> sussceList);

    @Select("select code from planclass")
    List<String> queryCode();

    @Select("select name from planclass")
    List<String> queryName();

    List<PlanClass> queryDataExport(PlanClassSelectVo planClassSelectVo);
}
